mirror of
https://github.com/Qortal/Qortal-Hub.git
synced 2025-06-03 15:07:00 +00:00
Refactor
This commit is contained in:
parent
c6b26a6e52
commit
0f857acd8d
@ -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',
|
||||
|
@ -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 });
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user