@@ -117,7 +117,7 @@ pub fn DeckDetailPage() -> impl IntoView {
117117 } ;
118118
119119 leptos:: task:: spawn_local ( async move {
120- if let Ok ( _ ) = update_deck ( id, name, description) . await {
120+ if update_deck ( id, name, description) . await . is_ok ( ) {
121121 deck_resource. refetch ( ) ;
122122 show_rename_modal. set ( false ) ;
123123 }
@@ -143,7 +143,7 @@ pub fn DeckDetailPage() -> impl IntoView {
143143 if confirmed {
144144 let project_id = deck. project_id ;
145145 leptos:: task:: spawn_local ( async move {
146- if let Ok ( _ ) = delete_deck ( id) . await {
146+ if delete_deck ( id) . await . is_ok ( ) {
147147 leptos_router:: hooks:: use_navigate ( ) (
148148 & format ! ( "/projects/{}/decks" , project_id) ,
149149 Default :: default ( ) ,
@@ -157,7 +157,7 @@ pub fn DeckDetailPage() -> impl IntoView {
157157 {
158158 let project_id = deck. project_id ;
159159 leptos:: task:: spawn_local ( async move {
160- if let Ok ( _ ) = delete_deck ( id) . await {
160+ if delete_deck ( id) . await . is_ok ( ) {
161161 leptos_router:: hooks:: use_navigate ( ) (
162162 & format ! ( "/projects/{}/decks" , project_id) ,
163163 Default :: default ( ) ,
@@ -350,7 +350,7 @@ pub fn DeckDetailPage() -> impl IntoView {
350350 // Generation Modal
351351 <Show when=move || show_generate_modal. get( ) >
352352 <GenerationModal
353- deck_id=Signal :: derive( move || deck_id( ) )
353+ deck_id=Signal :: derive( deck_id)
354354 files=Signal :: derive( move || {
355355 project_files_resource. get( )
356356 . flatten( )
0 commit comments