diff --git a/tui2/pages/request/request.go b/tui2/pages/request/request.go index 60d8c923..7424af64 100644 --- a/tui2/pages/request/request.go +++ b/tui2/pages/request/request.go @@ -164,7 +164,11 @@ func (r *Request) renderRequestSummary() string { packageName = fmt.Sprintf("%s (%s-%s)", packageName, packageMetaName, packageMetaVersion) jwt := "JWT token not set, run `substreams auth` to set it" if r.Config.SubstreamsClientConfig.AuthToken() != "" { - jwt = fmt.Sprintf("%s...", r.Config.SubstreamsClientConfig.AuthToken()[0:50]) // display only the first 50 characters + if len(r.Config.SubstreamsClientConfig.AuthToken()) < 50 { + jwt = r.Config.SubstreamsClientConfig.AuthToken() + } else { + jwt = fmt.Sprintf("%s...", r.Config.SubstreamsClientConfig.AuthToken()[0:50]) // display only the first 50 characters + } } rows := [][]string{ {"Package:", packageName},