Skip to content

Commit 0d84b2d

Browse files
committed
Fixing spellbook run button
1 parent c59613b commit 0d84b2d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

typescript/packages/jumble/src/views/spellbook/SpellbookLaunchView.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function SpellbookLaunchView() {
5555

5656
// Run the recipe with the initial data
5757
const charm = await charmManager.runPersistent(recipe, initialData);
58-
const charmIdString = charm.entityId?.toJSON?.()["/"];
58+
const charmIdString = charm?.entityId?.["/"] as string;
5959
await charmManager.add([charm]);
6060

6161
if (charmIdString) {
@@ -82,9 +82,7 @@ export default function SpellbookLaunchView() {
8282
<div className="flex items-center justify-center h-screen">
8383
<div className="text-center">
8484
<h1 className="text-2xl font-bold mb-4">Launching Spell...</h1>
85-
<p className="text-gray-600">
86-
Please wait while we prepare your spell.
87-
</p>
85+
<p className="text-gray-600">Please wait while we prepare your spell.</p>
8886
</div>
8987
</div>
9088
);

0 commit comments

Comments
 (0)