Warn in UI if Sentry DSN isn't set

This commit is contained in:
Icaro Motta 2024-12-09 08:09:22 -03:00
parent 25fb2549e4
commit 54259850cb
No known key found for this signature in database
GPG Key ID: 009557D9D014DF07
1 changed files with 5 additions and 1 deletions

View File

@ -1,10 +1,12 @@
(ns legacy.status-im.ui.screens.advanced-settings.views
(:require
[clojure.string :as string]
[legacy.status-im.ui.components.core :as components]
[legacy.status-im.ui.components.list.item :as list.item]
[legacy.status-im.ui.components.list.views :as list]
[quo.core :as quo]
[re-frame.core :as re-frame]
[status-im.config :as config]
[status-im.feature-flags :as ff]
[utils.i18n :as i18n]
[utils.re-frame :as rf])
@ -25,7 +27,9 @@
identity
[(when (ff/enabled? ::ff/app-monitoring.intentional-crash)
{:size :small
:title "Force crash immediately"
:title (str "Force crash immediately"
(when (string/blank? config/sentry-dsn-status-go)
" (Sentry DSN is not set)"))
:accessibility-label :intended-panic
:on-press (fn []
(re-frame/dispatch [:app-monitoring/intended-panic