diff --git a/src/examples/basic/index.ts b/src/examples/basic/index.ts index d69bc0d..82ec8b5 100644 --- a/src/examples/basic/index.ts +++ b/src/examples/basic/index.ts @@ -2092,9 +2092,14 @@ const interval = new Interval({ { label: 'Make it negative', theme: 'danger', value: 'negative' }, { label: 'Do nothing', value: 'nothing' }, 'Think about it for a while', - '?', + 'Restart', ]) + if (singleChoice === 'Restart') { + await ctx.redirect({ route: 'with_choices' }) + return + } + if (singleReturnValue && singleChoice === 'negative') { singleReturnValue = -singleReturnValue }