Skip to content

Commit

Permalink
fixed a couple of gdl accounts ui issues
Browse files Browse the repository at this point in the history
  • Loading branch information
blarfoon committed Dec 28, 2024
1 parent db46e5f commit beafde9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ const GDLAccountCompletion = (props: Props) => {
return account.username
}

if (!props.nickname) {
props.setNickname(defaultNickname())
}

return (
<div class="flex-1 w-full flex flex-col justify-between items-center text-center gap-5 p-10">
<div class="flex flex-col w-full gap-4">
Expand Down
5 changes: 4 additions & 1 deletion crates/carbon_app/src/api/account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,13 @@ pub(super) fn mount_axum_router() -> axum::Router<Arc<AppInner>> {
|State(app): State<Arc<AppInner>>,
Query(query): Query<WaitForVerificationQuery>| async move {
app.account_manager()
.wait_for_account_verification(query.uuid)
.wait_for_account_verification(query.uuid.clone())
.await
.map_err(|e| FeError::from_anyhow(&e).make_axum())?;

app.invalidate(PEEK_GDL_ACCOUNT, Some(query.uuid.clone().into()));
app.invalidate(GET_GDL_ACCOUNT, None);

Ok::<_, AxumError>("ok".to_string())
},
),
Expand Down

0 comments on commit beafde9

Please sign in to comment.