Migrate guard in Wizard/State
This commit is contained in:
@@ -126,7 +126,10 @@ export function Provider({
|
|||||||
const {currentAccount} = useSession()
|
const {currentAccount} = useSession()
|
||||||
|
|
||||||
const createInitialState = (): State => {
|
const createInitialState = (): State => {
|
||||||
if (starterPack && AppBskyGraphStarterpack.isRecord(starterPack.record)) {
|
if (
|
||||||
|
starterPack &&
|
||||||
|
AppBskyGraphStarterpack.isValidRecord(starterPack.record)
|
||||||
|
) {
|
||||||
return {
|
return {
|
||||||
canNext: true,
|
canNext: true,
|
||||||
currentStep: 'Details',
|
currentStep: 'Details',
|
||||||
|
|||||||
Reference in New Issue
Block a user