Skip to content

Commit

Permalink
fix: update dependency in useCallback to include selectedFile for acc…
Browse files Browse the repository at this point in the history
…urate file handling
  • Loading branch information
afarago committed Nov 13, 2024
1 parent 2a85dff commit f46fb62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TabMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const MainTab: React.FC<{

return false;
},
[conversionResult, key, svgRef],
[conversionResult, key, svgRef, selectedFile],
);

function changeExtension(filename: string, newExtension: string): string {
Expand Down

0 comments on commit f46fb62

Please sign in to comment.