Fix variable name error (#1781)

This commit is contained in:
3002
2024-04-10 06:26:17 +09:00
committed by GitHub
parent 00c0e418a9
commit f3fe0ee736

View File

@@ -95,7 +95,7 @@ const useIpcEvents = () => {
if (typeof error === 'string') {
return toast.error(error || 'Something went wrong!');
}
if (typeof message === 'object') {
if (typeof error === 'object') {
return toast.error(error.message || 'Something went wrong!');
}
});