We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 500b47d commit d53cb6cCopy full SHA for d53cb6c
src/script/team/TeamRepository.ts
@@ -269,8 +269,11 @@ export class TeamRepository {
269
270
if (imageResource) {
271
try {
272
- const imageBlob = imageResource ? await this.assetRepository.load(imageResource) : undefined;
273
- imageDataUrl = imageBlob ? await loadDataUrl(imageBlob) : undefined;
+ const imageBlob = imageResource && (await this.assetRepository.load(imageResource));
+
274
+ if (imageBlob) {
275
+ imageDataUrl = await loadDataUrl(imageBlob);
276
+ }
277
} catch (error) {
278
this.logger.warn(`Account image could not be loaded`, error);
279
}
0 commit comments