Skip to content

Commit

Permalink
swapped tostring methods in createargs
Browse files Browse the repository at this point in the history
  • Loading branch information
Upbolt authored Nov 7, 2021
1 parent 7cddb8e commit dd2e834
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ui/modules/RemoteSpy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,13 @@ local function createArg(instance, index, value)

arg.Icon.Image = oh.Constants.Types[valueType]
arg.Index.Text = index
arg.Label.Text = toString(value)

if valueType == "table" then
arg.Label.Text = toString(value)
else
arg.Label.Text = dataToString(value)
end

arg.Label.TextColor3 = oh.Constants.Syntax[valueType]
arg.Parent = instance.Contents

Expand Down Expand Up @@ -858,7 +864,7 @@ scriptContext:SetCallback(function()
elseif valueType == "table" then
v = tableToString(v)
elseif valueType == "string" then
v = '"' .. dataToString(v) .. '"'
v = dataToString(v)
else
v = toString(v)
end
Expand Down

0 comments on commit dd2e834

Please sign in to comment.