Skip to content

Commit 178b9c0

Browse files
fix build
1 parent 16b40c1 commit 178b9c0

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • packages/web/src/app/(app)/browse/[...path]/components

packages/web/src/app/(app)/browse/[...path]/components/commitRow.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,10 @@ export const CommitRow = ({ commit, repoName, path, pathType }: CommitRowProps)
5050
pathType: 'tree',
5151
});
5252

53-
const onCopySha = useCallback(async () => {
54-
await navigator.clipboard.writeText(commit.hash);
55-
toast({ description: "✅ Copied commit SHA to clipboard" });
53+
const onCopySha = useCallback(() => {
54+
navigator.clipboard.writeText(commit.hash).then(() => {
55+
toast({ description: "✅ Copied commit SHA to clipboard" });
56+
})
5657
return true;
5758
}, [commit.hash, toast]);
5859

0 commit comments

Comments
 (0)