Skip to content

Commit 1b5c837

Browse files
committed
app: use default web address for sharing if no one is working
1 parent cf65565 commit 1b5c837

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

crates/companion-app/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,7 @@ fn update(state: &mut State, message: Message) -> Task<Message> {
203203
error!("config not loaded, skipping sharing");
204204
return none;
205205
};
206-
let Some(address) = config.web_address() else {
207-
error!("web address not loaded, skipping sharing");
208-
return none;
209-
};
206+
let address = config.web_address().unwrap_or(WEB_ADDRESS);
210207
let url = format!("{address}#profile={id}");
211208

212209
return clipboard::write(url)

0 commit comments

Comments
 (0)