Skip to content

Commit 8a3ba5f

Browse files
committed
v0.4.12
1 parent 7e945d1 commit 8a3ba5f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/LockScreen/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ const LockScreen = () => {
2727
}, [])
2828

2929
useEffect(() => {
30-
getB64File(getFromStorage('customLockBg')).then((b64Img) => !bgImg && setBgImg(b64Img))
30+
const bgPath = getFromStorage('customLockBg')
31+
32+
if (bgPath) {
33+
getB64File(bgPath).then((b64Img) => !bgImg && setBgImg(b64Img))
34+
}
3135
}, [bgImg])
3236

3337
const unlock = (event) => {

0 commit comments

Comments
 (0)