From 8d15c4e724a65347a999f31486f72bdbd9d38812 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 2 Apr 2020 10:45:19 -0700 Subject: set unit conditionally --- routes/users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'routes/users.js') diff --git a/routes/users.js b/routes/users.js index 4644cc06..725a14e7 100644 --- a/routes/users.js +++ b/routes/users.js @@ -170,7 +170,7 @@ app.post("/user", auth, async (req, res) => { }); } - user.unit = unit; + if (unit) user.unit = unit; user.currency = currency; user.currencies = currencies; -- cgit v1.2.3 ogo'/> index : coinosv3.git
coinos v3 — bitcoin, Ark, Lightning and nostr wallet (web + Android)coinos
aboutsummaryrefslogtreecommitdiffstats
path: root/src/dm.js
blob: 70cf46bf2fd279d2062c478aca18d9efab4631c3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88