Skip to content

Commit 2bebbeb

Browse files
authored
Merge branch 'master' into magic_login
2 parents 3f8a630 + bd84b8b commit 2bebbeb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

components/media-or-link.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,12 @@ export const useMediaHelper = ({ src, srcSet: srcSetIntital, topLevel, tab }) =>
133133
// hack
134134
// if it's not a video it will throw an error, so we can assume it's an image
135135
const img = new window.Image()
136-
img.onload = () => setIsImage(true)
137136
img.src = src
137+
img.decode().then(() => { // decoding beforehand to prevent wrong image cropping
138+
setIsImage(true)
139+
}).catch((e) => {
140+
console.error('Cannot decode image', e)
141+
})
138142
}
139143
video.src = src
140144

worker/earn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function earnStmts (data, { models }) {
189189
})]
190190
}
191191

192-
const DAILY_STIMULUS_SATS = 75_000
192+
const DAILY_STIMULUS_SATS = 50_000
193193
export async function earnRefill ({ models, lnd }) {
194194
return await performPaidAction('DONATE',
195195
{ sats: DAILY_STIMULUS_SATS },

0 commit comments

Comments
 (0)