mirror of
https://github.com/status-im/status-go.git
synced 2025-01-21 20:20:29 +00:00
Don't omit history index when the value is 0 (#1545)
This commit is contained in:
parent
acfe9a721c
commit
6f1c2eca12
@ -44,10 +44,12 @@ func TestBrowsersOrderedNewestFirst(t *testing.T) {
|
|||||||
Timestamp: 50,
|
Timestamp: 50,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
ID: "3",
|
ID: "3",
|
||||||
Name: "third",
|
Name: "third",
|
||||||
Dapp: true,
|
Dapp: true,
|
||||||
Timestamp: 100,
|
Timestamp: 100,
|
||||||
|
HistoryIndex: 0,
|
||||||
|
History: []string{"zero"},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for i := 0; i < len(browsers); i++ {
|
for i := 0; i < len(browsers); i++ {
|
||||||
|
@ -35,7 +35,7 @@ type Browser struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Timestamp uint64 `json:"timestamp"`
|
Timestamp uint64 `json:"timestamp"`
|
||||||
Dapp bool `json:"dapp?"`
|
Dapp bool `json:"dapp?"`
|
||||||
HistoryIndex int `json:"history-index,omitempty"`
|
HistoryIndex int `json:"history-index"`
|
||||||
History []string `json:"history,omitempty"`
|
History []string `json:"history,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user