diff --git a/src/components/Group/Settings.tsx b/src/components/Group/Settings.tsx index 9508ebc..92df026 100644 --- a/src/components/Group/Settings.tsx +++ b/src/components/Group/Settings.tsx @@ -154,7 +154,7 @@ export const Settings = ({ open, setOpen, rawWallet }) => { useEffect(() => { getUserSettings(); - }, []); + }); return ( @@ -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', diff --git a/src/encryption/bcryptworker.worker.js b/src/encryption/bcryptworker.worker.js index d6d048a..f324c3f 100644 --- a/src/encryption/bcryptworker.worker.js +++ b/src/encryption/bcryptworker.worker.js @@ -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 }); - } -}; \ No newline at end of file + const { hashBase64, salt } = e.data; + try { + const result = bcrypt.hashSync(hashBase64, salt); + self.postMessage({ result }); + } catch (error) { + self.postMessage({ error: error.message }); + } +};