[#7848] Fix crash on logout with opened transactions details
This commit is contained in:
parent
082188eea9
commit
62e94ed4d4
|
@ -61,7 +61,8 @@
|
||||||
[list/touchable-item #(when-not hide-details? (re-frame/dispatch [:show-transaction-details hash]))
|
[list/touchable-item #(when-not hide-details? (re-frame/dispatch [:show-transaction-details hash]))
|
||||||
[react/view {:accessibility-label :transaction-item}
|
[react/view {:accessibility-label :transaction-item}
|
||||||
[list/item
|
[list/item
|
||||||
[list/item-icon (transaction-type->icon (keyword type))]
|
(when type
|
||||||
|
[list/item-icon (transaction-type->icon (keyword type))])
|
||||||
[list/item-content
|
[list/item-content
|
||||||
[react/view {:style styles/amount-time}
|
[react/view {:style styles/amount-time}
|
||||||
[react/nested-text {:style styles/tx-amount
|
[react/nested-text {:style styles/tx-amount
|
||||||
|
@ -124,10 +125,11 @@
|
||||||
content]]])
|
content]]])
|
||||||
|
|
||||||
(defn- render-item-filter [{:keys [id label checked?]}]
|
(defn- render-item-filter [{:keys [id label checked?]}]
|
||||||
[item-filter {:icon (transaction-type->icon id) :checked? checked? :path {:type id}}
|
(when id
|
||||||
[list/item-content
|
[item-filter {:icon (transaction-type->icon id) :checked? checked? :path {:type id}}
|
||||||
[list/item-primary-only {:accessibility-label :filter-name-text}
|
[list/item-content
|
||||||
label]]])
|
[list/item-primary-only {:accessibility-label :filter-name-text}
|
||||||
|
label]]]))
|
||||||
|
|
||||||
(defn- wrap-filter-data [m]
|
(defn- wrap-filter-data [m]
|
||||||
[{:title (i18n/label :t/transactions-filter-type)
|
[{:title (i18n/label :t/transactions-filter-type)
|
||||||
|
@ -168,7 +170,8 @@
|
||||||
(let [asset (tokens/asset-for all-tokens (ethereum/network->chain-keyword network) symbol)]
|
(let [asset (tokens/asset-for all-tokens (ethereum/network->chain-keyword network) symbol)]
|
||||||
[react/view {:style styles/details-header}
|
[react/view {:style styles/details-header}
|
||||||
[react/view {:style styles/details-header-icon}
|
[react/view {:style styles/details-header-icon}
|
||||||
[list/item-icon (transaction-type->icon type)]]
|
(when type
|
||||||
|
[list/item-icon (transaction-type->icon type)])]
|
||||||
[react/view {:style styles/details-header-infos}
|
[react/view {:style styles/details-header-infos}
|
||||||
[react/nested-text {:style styles/details-header-value}
|
[react/nested-text {:style styles/details-header-value}
|
||||||
[{:accessibility-label :amount-text}
|
[{:accessibility-label :amount-text}
|
||||||
|
|
Loading…
Reference in New Issue