This commit is contained in:
Nicola Benaglia 2025-05-27 08:47:01 +02:00
parent c6b26a6e52
commit 0f857acd8d
2 changed files with 11 additions and 11 deletions

View File

@ -154,7 +154,7 @@ export const Settings = ({ open, setOpen, rawWallet }) => {
useEffect(() => { useEffect(() => {
getUserSettings(); getUserSettings();
}, []); });
return ( return (
<Fragment> <Fragment>
@ -243,6 +243,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
const [isOpen, setIsOpen] = useState(false); const [isOpen, setIsOpen] = useState(false);
const { setOpenSnackGlobal, setInfoSnackCustom } = const { setOpenSnackGlobal, setInfoSnackCustom } =
useContext(QORTAL_APP_CONTEXT); useContext(QORTAL_APP_CONTEXT);
const theme = useTheme();
const { t } = useTranslation([ const { t } = useTranslation([
'auth', 'auth',
'core', 'core',

View File

@ -1,12 +1,11 @@
import bcrypt from 'bcryptjs' import bcrypt from 'bcryptjs';
self.onmessage = function (e) { self.onmessage = function (e) {
const { hashBase64, salt } = e.data; const { hashBase64, salt } = e.data;
try { try {
const result = bcrypt.hashSync(hashBase64, salt); const result = bcrypt.hashSync(hashBase64, salt);
self.postMessage({ result }); self.postMessage({ result });
} catch (error) { } catch (error) {
self.postMessage({ error: error.message }); self.postMessage({ error: error.message });
} }
}; };