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(() => {
getUserSettings();
}, []);
});
return (
<Fragment>
@ -243,6 +243,7 @@ const ExportPrivateKey = ({ rawWallet }) => {
const [isOpen, setIsOpen] = useState(false);
const { setOpenSnackGlobal, setInfoSnackCustom } =
useContext(QORTAL_APP_CONTEXT);
const theme = useTheme();
const { t } = useTranslation([
'auth',
'core',

View File

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