Skip to content

Commit 0e6878a

Browse files
committed
fix crash for url construction when icon is undefined
1 parent dea09ee commit 0e6878a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/blinks-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dialectlabs/blinks-core",
3-
"version": "0.20.5",
3+
"version": "0.20.6",
44
"license": "Apache-2.0",
55
"private": false,
66
"sideEffects": true,

packages/blinks-core/src/api/BlinkInstance/BlinkInstance.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ export class BlinkInstance {
138138
}
139139

140140
public get icon() {
141-
if (this._data.icon.startsWith('data:') || isProxified(this._data.icon)) {
141+
if (
142+
this._data.icon.startsWith('data:') ||
143+
isProxified(this._data.icon) ||
144+
!this._data.icon
145+
) {
142146
return this._data.icon;
143147
}
144148
return proxifyImage(this._data.icon).url.toString();

0 commit comments

Comments
 (0)