diff --git a/ui/models/models.go b/ui/models/models.go index 9ada4fc..910966e 100644 --- a/ui/models/models.go +++ b/ui/models/models.go @@ -62,7 +62,9 @@ func (m *Models) RefreshChannels(ctx context.Context) error { if channel != nil && (channel.UpdatesCount < channels[i].UpdatesCount || channel.LastUpdate == nil || channel.LocalPolicy == nil || channel.RemotePolicy == nil) { - channels[i].Age = m.Info.BlockHeight - uint32(channels[i].ID>>40) + if channels[i].ID > 0 { + channels[i].Age = m.Info.BlockHeight - uint32(channels[i].ID>>40) + } err := m.network.GetChannelInfo(ctx, channels[i]) if err != nil { return err