mirror of
https://github.com/luminous-devs/lume.git
synced 2024-09-18 11:13:30 +00:00
fix hashtag step in onboarding
This commit is contained in:
parent
177e4c1ff7
commit
41901b2174
@ -1,3 +1,4 @@
|
|||||||
|
import { message } from '@tauri-apps/api/dialog';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import { Link, useNavigate } from 'react-router-dom';
|
import { Link, useNavigate } from 'react-router-dom';
|
||||||
|
|
||||||
@ -52,12 +53,12 @@ export function OnboardStep2Screen() {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
|
|
||||||
for (const tag of tags) {
|
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 });
|
navigate('/auth/onboarding/step-3', { replace: true });
|
||||||
} catch {
|
} catch (e) {
|
||||||
console.log('error');
|
await message(e, { title: 'Error', type: 'error' });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user