mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Handle nil emoji
This commit is contained in:
parent
4b847b6b08
commit
8978fce157
1 changed files with 1 additions and 3 deletions
|
|
@ -166,10 +166,8 @@ struct WaypointForm: View {
|
|||
newWaypoint.longitudeI = waypoint.longitudeI
|
||||
newWaypoint.name = name.count > 0 ? name : "Dropped Pin"
|
||||
newWaypoint.description_p = description
|
||||
// Unicode scalar value for the icon emoji string
|
||||
let unicodeScalers = icon.unicodeScalars
|
||||
// First element as an UInt32
|
||||
let unicode = unicodeScalers[unicodeScalers.startIndex].value
|
||||
let unicode = unicodeScalers.first?.value ?? 128205
|
||||
newWaypoint.icon = unicode
|
||||
if locked {
|
||||
if lockedTo == 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue