Skip to content

Commit

Permalink
fix hashtag step in onboarding
Browse files Browse the repository at this point in the history
  • Loading branch information
reyamir committed Sep 8, 2023
1 parent 177e4c1 commit 41901b2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/auth/onboarding/step-2.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { message } from '@tauri-apps/api/dialog';
import { useEffect, useState } from 'react';
import { Link, useNavigate } from 'react-router-dom';

Expand Down Expand Up @@ -52,12 +53,12 @@ export function OnboardStep2Screen() {
setLoading(true);

for (const tag of tags) {
await db.createWidget(WidgetKinds.hashtag, tag, tag.replace('#', ''));
await db.createWidget(WidgetKinds.global.hashtag, tag, tag.replace('#', ''));
}

navigate('/auth/onboarding/step-3', { replace: true });
} catch {
console.log('error');
} catch (e) {
await message(e, { title: 'Error', type: 'error' });
}
};

Expand Down

0 comments on commit 41901b2

Please sign in to comment.