fix(contracts): wrap conditional Card actions in Some/None #156
Loading…
Reference in a new issue
No description provided.
Delete branch "chore/checks-workflow-24ff62c7"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The RateCardItemsCard passed bare
rsx! { ... }/rsx! {}branches to the Cardactions: Option<Element>prop. The rsx macro cannot parse a bare nestedrsx!as an attribute value in that position, socargo clippy/cargo checkfailed with "Expected an expression" at the innerrsx!. Wrap the truthy branch inSome(rsx! { ... })and the falsy branch inNone, matching the working pattern already used for the Description card in tickets.rs.Also apply
cargo fmtto two pre-existing formatting drifts in the same file (theafterfield map chain and the let-elsereturn), whichcargo fmt --all --checkflagged, and refresh Cargo.lock so the recorded mokosh-apps version matches Cargo.toml (0.3.0).#MAPPS-180
The RateCardItemsCard passed bare `rsx! { ... }` / `rsx! {}` branches to the Card `actions: Option<Element>` prop. The rsx macro cannot parse a bare nested `rsx!` as an attribute value in that position, so `cargo clippy`/`cargo check` failed with "Expected an expression" at the inner `rsx!`. Wrap the truthy branch in `Some(rsx! { ... })` and the falsy branch in `None`, matching the working pattern already used for the Description card in tickets.rs. Also apply `cargo fmt` to two pre-existing formatting drifts in the same file (the `after` field map chain and the let-else `return`), which `cargo fmt --all --check` flagged, and refresh Cargo.lock so the recorded mokosh-apps version matches Cargo.toml (0.3.0). #MAPPS-180